//
//  MXSDiscoverVC.swift
//  weibo
//
//  Created by 孙飞 on 15/12/5.
//  Copyright © 2015年 Sunfei. All rights reserved.
//

import UIKit

class MXSDiscoverVC: MXSStateTableVC {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if !isUserLogin{
            
            return
        }
        
        setupUI()
        
    }
    
    func setupUI(){
        
//        let searchView = MXSDisSearchView()
//        searchView.frame = CGRect(x: 0, y: 0, width: UIScreen.mainScreen().bounds.width, height: 35)
        
        let searchView = MXSDisSearchView.searchView()
        searchView.frame = CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, 35)
        
        navigationItem.titleView = searchView
    }
    
    
    func discoverGroup(){
        
        let discover = MXSSearchVC()
        navigationController?.pushViewController(discover, animated: true)
    }


}
